function resetTxtFld() {
	document.getElementById("searchSysId").value = ""
}

function validate_required(field, alerttxt) {
	with (field) {
		if (!value.match(/^[a-zA-Z0-9 ]+$/)) {
			document.getElementById('div1').innerHTML = alerttxt;
			return false;
		} else {
			return true;
		}
	}
}

function validate_form(thisform) {
	with (thisform) {
		if (validate_required(searchSysId, "Please Enter Valid System Id") == false) {
			searchSysId.focus();
			return false;
		}
	}
}

function checkFileExt()
{
	var fileName = document.getElementById("fileUploadInput").value;
	
	if(fileName!="")
	{
		if(fileName.lastIndexOf(".csv")==-1)
		{
			alert("Only .csv extension files are allowed");
			return false;
		}
	}
	else
	{
		alert("Please select a .csv file");
		return false;
	}
	
}